package org.darcy.youchat.activity.me.card;

import android.view.MenuItem;

import org.darcy.youchat.R;
import org.darcy.youchat.activity.BaseActivity;
import org.darcy.youchat.databinding.ActivityCardPacketBinding;
import org.darcy.youchat.databinding.ActivityVipCardBinding;

/**
 * me->卡包->会员卡
 */
public class VipCardActivity extends BaseActivity {

    private ActivityVipCardBinding binding;

    @Override
    public void initView() {
        binding = ActivityVipCardBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        setSupportActionBar(binding.mToolbar.toolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        binding.mToolbar.toolbar.setNavigationIcon(R.mipmap.ic_back);
        getSupportActionBar().setTitle("会员卡");
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                finish();
                break;
        }
        return super.onOptionsItemSelected(item);
    }

}